.expand-container {
    width: 100%;
    height: 100%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expand-card {
    width: 600px;
    height: 500px;
    position: relative;
}

.expand-bg {
    width: 600px;
    height: 500px;
    overflow: hidden;
    transform-origin: bottom;
    transition: 2s;
}

.expand-main {
    width: 800px;
    height: 500px;
    position: absolute;
    bottom: 400px;
    left:-100px;
    transform-origin: bottom;
    transition: 2s;
    transform: scale(0);
    opacity: 0;
}

.expand-main>img {
    width: 100%;
    height: 100%;
}

.expand-content {
    width: 600px;
    padding: 10px;
    color: #fff;
    position: absolute;
    bottom: -100px;
    opacity: 0;
    transition: 2s;
}

.expand-content>h1 {
    font-weight: 200;
    margin-left: 0px;
    writing-mode: vertical-lr;
}

.expand-content>h2 {
    padding-top: 20px;
    font-weight: 200;
    margin-left: 10px;
    writing-mode: vertical-lr;
}

.expand-content>p {
    font-weight: 200;
    padding-top: 10px;
    margin-left: 15px;
    writing-mode: vertical-lr;
}

.expand-card:hover>.expand-bg {
    transform: perspective(1000px) rotateX(30deg) skewX(-20deg);
}

.expand-card:hover>.expand-main {
    opacity: 1;
    bottom: 300px;
    left:0px;
    transform: scale(1);
}

.expand-card:hover>.expand-content{
    opacity: 1;
    transform: translateY(-150px);
}

.fan-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 扇柄容器 */
.fan-handle {
    position: absolute;
    width: 500px;
    height: 200px;
    padding: 0;
    margin: 0;
    top: 30%;
    /* 居中 */
    left: calc(50% - 250px);
    perspective: 1000px;
}

/* 扇柄 */
.fan-h {
    position: absolute;
    width: 20px;
    height: 200px;
    /* 整个扇柄容器宽500px，扇柄宽20px，扇柄在容器中居中需要右移240px */
    left: 240px;
    background-color: #211e1c;
    /* 裁剪梯形遮罩，梯形下边宽长为20-2*5px，上边宽长为20px */
    clip-path: polygon(0 0, 5px 100%, calc(100% - 5px) 100%, 100% 0);
    list-style-type: none;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: center 160px 0;
    transition: 2s ease-in;
}

/* 扇柄旋转动画 */
.expand-card:hover .fan-h {
    transform: rotateZ(calc(var(--s)*5deg));
}

/* 扇叶容器 */
.fan-content {
    position: absolute;
    width: 500px;
    height: 200px;
    padding: 0;
    margin: 0;
    /* 比扇柄高150px */
    top: calc(30% - 150px);
    /* 居中 */
    left: calc(50% - 250px);
    perspective: 1000px;
}

/* 扇叶 */
.fan-item {
    --PI: 3.14159265358979;
    --calc-width1: calc(310px * var(--PI) * 10 * var(--d) / 360 + 2px);
    --calc-width2: calc(110px * var(--PI) * 10 * var(--d) / 360 + 2px);
    position: absolute;
    width: var(--calc-width1);
    height: 200px;
    left: calc(250px - var(--calc-width1) / 2);
    clip-path: polygon(0 0, calc((var(--calc-width1) - var(--calc-width2)) / 2) 100%, calc(100% - (var(--calc-width1) - var(--calc-width2)) / 2) 100%, 100% 0);
    list-style-type: none;
    background-color: #917458;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: center 310px 0;
    transition: 2s ease-in;
    text-align: center;
}

/* 扇页旋转动画 */
.expand-card:hover .fan-item {
    transform: rotateZ(calc(var(--v)*5deg)) rotateY(calc(var(--s)*15deg));
}

.fan-item>span {
    font-style: italic;
    font-size: 20px;
    writing-mode: vertical-lr;
}

.fan-cover {
    --PI: 3.14159265358979;
    --calc-width1: calc(310px * var(--PI) * 30 / 360 + 2px);
    --calc-width2: calc(110px * var(--PI) * 30 / 360 + 2px);
    position: absolute;
    width: var(--calc-width1);
    height: 200px;
    padding: 0;
    /* 比扇柄高150px */
    top: calc(30% - 150px);
    left: calc(50% - var(--calc-width1) / 2);
    clip-path: polygon(0 0, calc((var(--calc-width1) - var(--calc-width2)) / 2) 100%, calc(100% - (var(--calc-width1) - var(--calc-width2)) / 2) 100%, 100% 0);
    background-color: #917458;
    text-align: center;
    transition: 1s;
    transform-origin: bottom;
}

.expand-card:hover .fan-cover {
    transform: scale(0) rotateX(90deg);
}

